package com.hj.dapp.common.request;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author 胡奥程
 * @version 1.0
 * @date 2023/12/30
 */
@Data
@Schema(description = "分页对象")
public class PageRequest<T> {
    @Schema(name = "分页查询参数")
    private T query;
    @Schema(name = "分页参数")
    private Page<T> page;

    @Schema(name = "条/每页", example = "10")
    private Long size;
    @Schema(name = "当前页", example = "1")
    private Long current;
}
